find and replace subword in word python regex

17

result = re.sub(r"Pulp Fiction", "Forrest Gump", text)

Comments

Submit
0 Comments